package ace.module.tenant.sdk.core.feign.impl;

import ace.cmp.openfeign.security.oauth2.core.config.FeignInternalServerOauth2SecurityConfig;
import ace.module.tenant.sdk.core.constant.SdkConstant;
import ace.module.tenant.sdk.core.feign.TenTenantAccountFeignApi;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * 租户账户 rpc contract.
 *
 * @author Caspar
 */
@FeignClient(
    name = "${spring.cloud.openfeign.client.tenTenantAccountFeign.name:"
        + SdkConstant.FEIGN_SERVICE_NAME + "}",
    contextId = "tenTenantAccountFeign",
    path = TenTenantAccountFeign.PATH,
    configuration = FeignInternalServerOauth2SecurityConfig.class)
public interface TenTenantAccountFeign extends TenTenantAccountFeignApi {

  String PATH =
      "${spring.cloud.openfeign.client.tenTenantAccountFeign.path:/tenant/rpc/ten-tenant-account}";
}
